import request from '@/utils/request';
import { other } from './prefix';

const aboutManage = {
  // 查询文章列表
  getAbout(params) {
    return request.get(other + '/about_us', { params });
  },
  // 创建文章
  setAbout(params) {
    return request.post(other + '/about_us', params);
  },
  // 更新文章
  updAbout(id, params) {
    return request.post(other + '/about_us/' + id, params);
  },
  // 删除文章
  delAbout(id) {
    return request.delete(other + '/about_us/' + id);
  },
};

export default aboutManage;
